#pragma once
#include <iostream>
using namespace std;

class complex
{
public:
	complex();
	complex(float A, float B);

	complex operator+(const complex& com)const;
	complex operator-(const complex& com)const;
	complex operator*(const complex& com)const;
	complex operator*(int num)const;
	complex operator~()const;

	friend istream& operator>>(istream& is, complex& com);
	friend ostream& operator<<(ostream& os, const complex& com);


	friend complex operator*(int num, const complex& com) { return com * num; }

private:
	float A;
	float B;
};

